﻿using System.Text.Json.Serialization.Metadata;

namespace LocalFileGoSvr.Controllers
{
    public class FileBaseInfo
    {
        public FileBaseInfo()
        {
            
        }
        public FileBaseInfo(string name, string path, bool isDir)
        {
            this.Name = name;
            this.Path = path;
            this.IsDirectory = isDir;
        }
        public string Name { get; set; }
        public string Path { get; set; }
        public bool IsDirectory { get; set; }
    }

    public class FileResponse
    { 
        public string[] RootPath { get; set; }
        public string[] Paths { get; set; }
        public List<FileBaseInfo> Files { get; set; }
    }
}
